﻿using System;
using System.Threading.Tasks;
using RestSharp;

namespace LearnCrawler
{
	class Program
	{
		static void Main(string[] args)
		{
			var rest = new RestSharp();

			for (var i = 0; i < 10000; i++)
			{
				Task.Run(() =>
				{
					var rs = rest.TestGetPress("http://wms.rizhaocombine.com/barcode/QrCodeDashboard?mcode=nmhyj&wcode=g2");
					Console.WriteLine(rs);
				});
			}
			Task.Delay(30000).Wait();
			Console.WriteLine("end");
		}
	}
}
